<?php
/**
 * Created by PhpStorm.
 * User: fengzi
 * Date: 2019/6/3
 * Time: 14:29
 */

namespace app\vehicle\model;
use think\Model;

class DeliveryOrder extends Model
{
    public function driver(){
        return $this->hasMany('bus_driver_skd','order_id','id')->field('id,order_id,driver_id')->with('driver');
    }

    public function bus(){
        return $this->hasMany('bus_skd','order_id','id')->field('id,order_id,bus_id')->with('bus');
    }
}